package com.zoffy.wmsbackend.model.vo;

import com.zoffy.wmsbackend.model.entity.User;
import lombok.Data;

@Data
public class UserVO {
    private long id;
    private String userName;
    private String role;

    public static UserVO obj2Vo(User user) {
        UserVO userVO = new UserVO();
        userVO.setUserName(user.getUserName());
        userVO.setId(user.getId());
        userVO.setRole(user.getRole());
        return userVO;
    }
}
